package com.example.mapper;

import com.example.model.User;

import java.util.List;

public interface UserMapper {

    //验证用户名密码是否正确
    User isLogin(String userName,String password);

    //分页显示用户列表
    List<User> findAllUser(User record);


    //查询总数量
    int selectCount(User record);

    User isUserByToken(String token);
    User selectByPrimaryKey(Integer userId);
    User selectByPrimaryUsername(String userName);


    int insert(User record);
    int insertSelective(User record);


    int updateByPrimaryKeySelective(User record);
    int updateByPrimaryKey(User record);


    int deleteByPrimaryKey(Integer userId);

}